<section class="title">
<?php if ($this->method == 'create'): ?>
	<h4><?php echo lang('escort_news_create_title'); ?></h4>
<?php else: ?>
	<h4><?php echo sprintf(lang('escort_news_edit_title'), $post->title); ?></h4>
<?php endif; ?>
</section>

<section class="item">
	
<?php echo form_open(uri_string(), 'class="crud"'); ?>
<div class="form_inputs" id="news-form">

	<fieldset>
	
		<ul>
			<li class="even">
				<label for="title"><?php echo lang('escort_news_title_label'); ?> <span>*</span></label>
				<div class="input"><?php echo form_input('title', htmlspecialchars_decode($post->title), 'maxlength="100" id="title"'); ?></div>				
			</li>
			<li class="even">
				<label for="slug"><?php echo lang('escort_news_slug_label'); ?> <span>*</span></label>
				<div class="input"><?php echo form_input('slug', htmlspecialchars_decode($post->slug), 'maxlength="100" id="slug"'); ?></div>				
			</li>
			<li class="odd">
				<label for="language_id"><?php echo lang('escort_news_language_label'); ?></label>
				<div class="input">					
					<?php echo form_dropdown('language_id',  array(0 => lang('global:select-all')) + $languages, $post->language_id) ?>
				</div>
			</li>
			<li class="even">
				<label for="site_id"><?php echo lang('escort_news_site_label'); ?></label>
				<div class="input">					
					<?php echo form_dropdown('site_ref', array(0 => lang('global:select-all')) + $sites, $post->site_ref) ?>
				</div>
			</li>
			<li class="odd">
				<label for="category_id"><?php echo lang('escort_news_category_label'); ?></label>
				<div class="input">					
					<?php echo form_dropdown('category_id',  array(0 => lang('global:select-all')) + $categories, $post->category_id) ?>
				</div>
			</li>
			<li class="odd">
				<label for="order"><?php echo lang('escort_news_order_label'); ?></label>
				<div class="input">					
					<?php echo form_input('order', $post->order)?>
				</div>
			</li>
			
			<li class="even">
				<label for="status"><?php echo lang('escort_news_status_label'); ?></label>
				<div class="input"><?php echo form_dropdown('status', array('active' => lang('escort_news_active_label'), 'inactive' => lang('escort_news_inactive_label')), $post->status) ?></div>
			</li>
			<li class="odd">
				<label for="news"><?php echo lang('escort_news_news_label'); ?></label>
				<br style="clear:both"/>
				<?php echo form_textarea(array('id' => 'news', 'name' => 'news', 'value' => $post->news, 'rows' => 30, 'class' => 'wysiwyg-advanced')); ?>
			</li>
		</ul>
	</fieldset>
</div>
<div class="buttons float-right padding-top">
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'save_exit', 'cancel'))); ?>
</div>
<?php echo form_close(); ?>
</section>